<?php
class Application_Model_DbTable_CartItem extends Application_Model_DbTable_DomainObject{
	//编码
	protected $_name = 'uuch_cartitem';
	
	public function getMapper(){
		return array('Id'=>'id','productName','productId','cartId','dateCreated','quantity','comment','price','shipFee','shopId','image','isSelected','skuNo');
	}
	
	public function getByCartId($cartId,$isSelected){
        $query = array('cartId'=>$cartId);
        if($isSelected)
            $query['isSelected'] = $isSelected;
        return $this->queryAll($query);
	}
}